<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      //continue关键字用于立即跳出本次循环,继续下一次循环
      //   break跳出所有循环
      for (var a = 1; a <= 100; a++) {
        if (a % 3 === 0) {
          //当条件成立的时候 跳出当前这一次循环 a=3 满足  (跳过所有3的倍数)
          continue;
          //   break;
        }
        console.log(a);
      }
    </script>
  </body>
</html>
